
CC=g++
CFLAGS=-c -Wall
LDFLAGS=
#INCL = -I/usr/include/opencv/ -lstdc++ -lgslcblas -lgsl -lcxcore -lcv -lhighgui -lcvaux -lm
INCL = -I/usr/local/include/opencv2/ -lstdc++ -lgslcblas -lgsl -lopencv_core -lcv -lopencv_highgui -lcvaux -lm


SOURCES=main.cpp 
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=hello

all: $(SOURCES) $(EXECUTABLE)
	
$(EXECUTABLE): $(OBJECTS)
	$(CC) $(LDFLAGS) $(INCL) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $(INCL) $< -o $@

	
clean:
	rm -rf *o hello




